<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<c:url var="addNewRole" value="/admin/addRole" />
<c:url var="buttonBackRoles" value="/admin/roles/pages/1" />

<form:form class="form-signin" name="formNewComponent"
	action="${addNewRole}" method="POST"
	modelAttribute="bindableRole"
	commandName="bindableRole">

	<form:label path="name">Role name</form:label>
	<form:input path="name" type="text" />
	<form:errors path="name" />
    	    
    <div id="formAddRolesBottomButtons" >
	   <button type="submit" class="btn btn-primary">Add new role</button>

	   <a href="${buttonBackRoles}" class="btn btn-primary"><i
		  class="icon-plus icon-white"></i>Back</a>
    </div>
</form:form>

<c:if test="${not empty sucess}">
	<c:if test="${sucess == true}">
		<p>sucess</p>
	</c:if>
	<c:if test="${sucess == false}">
		<p>error</p>
	</c:if>
</c:if>